﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace backend.Entity
{
    public class Attachment
    {
        public long Id { get; set; }
        /// <summary>
        /// 文件外键
        /// </summary>
        public long FileInfoId { get; set; }
        /// <summary>
        /// 文件实体
        /// </summary>
        [ForeignKey("FileInfoId")]
        public FileInfo FileInfo { get; set; }

        /// <summary>
        /// 项目外键
        /// </summary>
        public long ProjectId { get; set; }
        /// <summary>
        /// 项目实体
        /// </summary>
        [ForeignKey("ProjectId")]
        public Project Project { get; set; }
    }
}
